<?php
class Host extends AppModel {
	var $name = 'Host';
	var $hasOne = 'Invite';
	        
    var $validate = array(
        'business_name'=> array(
            'rule' => 'notEmpty',
            'message' => 'This field cannot be left blank'
        ),
        'passwd' => array(
            'rule' => 'notEmpty',
            'message' => 'This field cannot be left blank'
        ),
        'email_addr' => array(
            'emailAddrRule1' => array(
                'rule' => 'email',
                'message' => 'Please supply a valid email address.'
            ),
            'emailAddrRule2' => array(
                'rule' => 'isUnique',
                'message' => 'This email already exists in our database.'
            )
        ),
    );    
}
?>